package org.example.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import org.example.system.common.base.BaseEntity;

/**
 * 网点地址表
 * @TableName biz_location
 */
@TableName(value ="biz_location")
@Data
public class BizLocation extends BaseEntity implements Serializable {
    /**
     * 网点编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 门店名称
     */
    @TableField(value = "title")
    private String title;

    /**
     * 取还车地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 网点电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 营业时间(09:00-21:00/00:00-24:00)
     */
    @TableField(value = "open_time")
    private String openTime;

    /**
     * 经度(保留4位小数)
     */
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度(保留4位小数)
     */
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}